package homework.yuandan.mapper;

import homework.yuandan.beans.Users;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 作者:49293
 * 时间:2021/1/4-16:08
 * @author 49293
 */
public interface UserMapper {
    /**
     *  登录接口
     * @param username 用户名
     *
     * @return 用户信息
     */
    @Select("select id, username, password, money, version, img, nick_name, role_id from users where username=#{username}")
    Users selectByUsernameAndPassword(String username);
}
